package lab02.test06;

/**
 * Created by V555 on 2017/10/15.
 */
public class Circle {
    //属性：半径、周长和面积
    double radius;
    double perimeter;
    double area;

    //周长
    double Perimeter() {
        perimeter = 2 * 3.14 * radius;
        return perimeter;
    }

    //面积
    double area() {
        area = 3.14 * radius * radius;
        return area;
    }
}

